How to calculate simple interest in C language